package com.fqgj.sentry.manage.service;

import com.fqgj.sentry.manage.entity.McGroupManagerEntity;

import java.util.List;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-07-13 下午4:16
 */

public interface GroupManagerService {

    /**
     * 根据userid查找用户对应的权限组列表
     *
     * @return
     */
    public List<McGroupManagerEntity> selectListByUserId(Long userId);

    /**
     * 添加一组权限组
     *
     * @param merchantId
     * @param userId
     * @param rolesId
     * @param appId
     * @return
     */
    public Boolean addGroupManager(Long merchantId, Long userId, List<Long> rolesId, Long appId);

    /**
     * 删除一组 商户的对应用户下的权限组
     *
     * @param groupManagerId
     * @return
     */
    public Boolean deleteGroupManager(Long groupManagerId);

    /**
     * 修改权限组的Id
     *
     * @param groupManagerId
     * @param rolesId
     * @return
     */
    public Boolean updateGroupManager(Long groupManagerId, List<Long> rolesId);

    /**
     * 根据userId  appId 查询权限组
     *
     * @return
     */
    public McGroupManagerEntity selectByUserIdAndAppId(Long userId, Long appId);

}
